home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group92c.txt
/
000042_icon-group-sender _Wed Oct 28 17:26:20 1992.msg
< prev
next >
Wrap
Internet Message Format
|
1993-01-04
|
1KB
Received: by cheltenham.cs.arizona.edu; Wed, 28 Oct 1992 17:26:27 MST
Date: Wed, 28 Oct 1992 17:26:20 MST
From: "Ralph Griswold" <ralph>
Message-Id: <199210290026.AA05706@cheltenham.cs.arizona.edu>
To: icon-group
Subject: semicolons
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
One way to think of this is to type RETURN (or whatever your keyboard
uses to generate a line terminator) when you'd have to type a semicolon
in a language with a similar syntax.
The only problem then arises when you want to split a line where you
don't want a semicolon. The rule is easy and quickly learned; don't
break a line when you don't want it to be interpreted as a semicolon
if the potential break place is at the end of a complete expression
and the next line starts with a token that is legitimate to start
an expression. For the most part, this translates into a simpler
rule: Put a non-semicolon break after a comma or a binary operator.
Thus,
a +
b
not
a
+ b
That's really all there is to it, and it doesn't require a lot of
thinking.
Ralph E. Griswold ralph@cs.arizona.edu
Department of Computer Science uunet!arizona!ralph
The University of Arizona 602-621-6609 (voice)
Tucson, AZ 85721 602-621-9618 (fax)